import 'package:json_annotation/json_annotation.dart';
import 'type_and_tag_icon.dart';

part 'user_task_publish_order_list.g.dart';

@JsonSerializable()
class UserPublishTaskOrderList {
  final List<TypeAndTagIcon> typeAndTagIcons;
  final String statusIcon;
  final String taskCategory;
  final String taskType;
  final double taskPrice;
  final String taskNo;
  final String taskThumb;
  final String taskTitle;
  final String rewardAmountDisplay;
  final String taskDescriptionInfo;
  final String taskReadyToApproveDescription;
  final String taskAllRewardAmountDisplay;

  UserPublishTaskOrderList({
    required this.typeAndTagIcons,
    required this.statusIcon,
    required this.taskCategory,
    required this.taskType,
    required this.taskPrice,
    required this.taskNo,
    required this.taskThumb,
    required this.taskTitle,
    required this.rewardAmountDisplay,
    required this.taskDescriptionInfo,
    required this.taskReadyToApproveDescription,
    required this.taskAllRewardAmountDisplay,
  });

  factory UserPublishTaskOrderList.fromJson(Map<String, dynamic> json) =>
      _$UserPublishTaskOrderListFromJson(json);

  Map<String, dynamic> toJson() => _$UserPublishTaskOrderListToJson(this);
}